package t20220305;

import java.util.regex.Pattern;

/**
 * @Author: DengJia
 * @Date: 2022/3/5 15:31
 * @Description:
 */

public class Regex {
    public static void main(String[] args) {
        boolean m1 = Pattern.matches("-?\\d+", "+10086");
        System.out.println("m1 = " + m1);

        boolean m2 = Pattern.matches("(-|\\+)?\\d+", "+10086");
        System.out.println("m2 = " + m2);

        System.out.println("中\t国");
        System.out.println("中\n国");
        System.out.println("中\r国");
        System.out.println("中\f国");
        System.out.println("中\\e国");

    }
}
